<meta charset="UTF-8">
<style>
    body {
        background:url(https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20200513%2Fc6fb21f319a1401f95c4af8297edf093.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1652854863&t=6c72e5344f1be6eef2f1957fff16b7f9);
        background-size: 100% 100%;
    }
    div {
        font-size: 80px;
        position: absolute;
        left: 100px;
        top:50px;
    }
    </style>
    
    <div>🐝</div>
    <script>
        //1.获取页面，绑定按下移动按钮
        document.onmousemove=function(evt){
        //2.交给函数处理中，获取事件对象
        var e=evt || window.event
        //3.获取事件对象的left top
        var left=e.clientX
        var top=e.clientY
        //4.获取小蜜蜂，设定left top
        var divObj=document.querySelector("div")
        divObj.style.left=left
        divObj.style.top=top
    }
    </script>